import request from '@/utils/request'

// 查询主要学历列表
export function listEDUCATION(query) {
  return request({
    url: '/person/EDUCATION/list',
    method: 'get',
    data: query
  })
}

// 查询主要学历详细
export function getEDUCATION(id) {
  return request({
    url: '/person/EDUCATION/' + id,
    method: 'get'
  })
}

// 新增主要学历
export function addEDUCATION(data) {
  return request({
    url: '/person/EDUCATION',
    method: 'post',
    data: data
  })
}

// 修改主要学历
export function updateEDUCATION(data) {
  return request({
    url: '/person/EDUCATION',
    method: 'put',
    data: data
  })
}

// 删除主要学历
export function delEDUCATION(id) {
  return request({
    url: '/person/EDUCATION/' + id,
    method: 'delete'
  })
}
